

    \filetitle{sprintf}{Print VAR model as formatted model code}{VAR/sprintf}

	\paragraph{Syntax}

\begin{verbatim}
[C,D] = sprintf(V,...)
\end{verbatim}

\paragraph{Input arguments}

\begin{itemize}
\item
  \texttt{V} {[} VAR {]} - VAR object that will be printed as a
  formatted model code.
\item
  Output arguments
\item
  \texttt{C} {[} cellstr {]} - Text string with the model code for each
  parameterisation.
\item
  \texttt{D} {[} cell {]} - Parameter database for each
  parameterisation; if
  \texttt{\textquotesingle{}hardParameters=\textquotesingle{}} is true,
  the databases will be empty.
\end{itemize}

\paragraph{Options}

\begin{itemize}
\item
  \texttt{\textquotesingle{}decimal=\textquotesingle{}} {[} numeric
  \textbar{} \emph{empty} {]} - Precision (number of decimals) at which
  the coefficients will be written if
  \texttt{\textquotesingle{}hardParameters=\textquotesingle{}} is true;
  if empty, the \texttt{\textquotesingle{}format=\textquotesingle{}}
  options is used.
\item
  \texttt{\textquotesingle{}declare=\textquotesingle{}} {[}
  \texttt{true} \textbar{} \emph{\texttt{false}} {]} - Add declaration
  blocks and keywords for VAR variables, shocks, and equations.
\item
  \texttt{\textquotesingle{}eNames=\textquotesingle{}} {[} cellstr
  \textbar{} char \textbar{} \emph{empty} {]} - Names that will be given
  to the VAR residuals; if empty, the names from the VAR object will be
  used.
\item
  \texttt{\textquotesingle{}format=\textquotesingle{}} {[} char
  \textbar{} \emph{`\%+.16g'} {]} - Numeric format for parameter values;
  it will be used only if
  \texttt{\textquotesingle{}decimal=\textquotesingle{}} is empty.
\item
  \texttt{\textquotesingle{}hardParameters=\textquotesingle{}} {[}
  \emph{\texttt{true}} \textbar{} \texttt{false} {]} - Print
  coefficients as hard numbers; otherwise, create parameter names and
  return a parameter database.
\item
  \texttt{\textquotesingle{}yNames=\textquotesingle{}} {[} cellstr
  \textbar{} char \textbar{} \emph{empty} {]} - Names that will be given
  to the variables; if empty, the names from the VAR object will be
  used.
\item
  \texttt{\textquotesingle{}tolerance=\textquotesingle{}} {[} numeric
  \textbar{} \emph{getrealsmall()} {]} - Treat VAR coefficients smaller
  than \texttt{\textquotesingle{}tolerance=\textquotesingle{}} in
  absolute value as zeros; zero coefficients will be dropped from the
  model code.
\end{itemize}

\paragraph{Description}

\paragraph{Example}


